package com.dd.modules.demo.service;

import java.util.Date;
import java.util.HashMap;
import java.util.Map;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.dd.keel.core.framework.service.ISoaService;


public class HelloService implements ISoaService{

	final static private Logger LOGGER = LoggerFactory
			.getLogger(HelloService.class);
	
	@Override
	public Map<String,Object> execute(String trace_id, String trace_span_id,
			Map<String,Object> request) {
		LOGGER.debug("request="+request.toString());
		Map<String,Object> response = new HashMap<String,Object>();
		response.put("statusCode", "0");
		response.put("statusDesc", "NONE");
		Map<String,Object> body = new HashMap<String,Object>();
		body.put("date", new Date().toString());
		response.put("data", body);
		return response;
	}



}
